package com.ruoyi.behindContractSH.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.behindContractSH.mapper.DocContractSHMapper;
import com.ruoyi.behindContractSH.domain.DocContractSH;
import com.ruoyi.behindContractSH.service.IDocContractSHService;

/**
 * 签约审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-16
 */
@Service
public class DocContractSHServiceImpl implements IDocContractSHService
{
    @Autowired
    private DocContractSHMapper docContractMapper;

    /**
     * 查询签约审核
     * 
     * @param contractId 签约审核主键
     * @return 签约审核
     */
    @Override
    public DocContractSH selectDocContractByContractId(Long contractId)
    {
        return docContractMapper.selectDocContractByContractId(contractId);
    }

    /**
     * 查询签约审核列表
     * 
     * @param docContract 签约审核
     * @return 签约审核
     */
    @Override
    public List<DocContractSH> selectDocContractList(DocContractSH docContract)
    {
        return docContractMapper.selectDocContractList(docContract);
    }

    /**
     * 新增签约审核
     * 
     * @param docContract 签约审核
     * @return 结果
     */
    @Override
    public int insertDocContract(DocContractSH docContract)
    {
        return docContractMapper.insertDocContract(docContract);
    }

    /**
     * 修改签约审核
     * 
     * @param docContract 签约审核
     * @return 结果
     */
    @Override
    public int updateDocContract(DocContractSH docContract)
    {
        return docContractMapper.updateDocContract(docContract);
    }

    /**
     * 批量删除签约审核
     * 
     * @param contractIds 需要删除的签约审核主键
     * @return 结果
     */
    @Override
    public int deleteDocContractByContractIds(Long[] contractIds)
    {
        return docContractMapper.deleteDocContractByContractIds(contractIds);
    }

    /**
     * 删除签约审核信息
     * 
     * @param contractId 签约审核主键
     * @return 结果
     */
    @Override
    public int deleteDocContractByContractId(Long contractId)
    {
        return docContractMapper.deleteDocContractByContractId(contractId);
    }
}
